#include "form.h"
#include "ui_form.h"
#include "mainwindow.h"
#include "newmainwindow.h"
Form::Form(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::Form)
{
    ui->setupUi(this);
}

Form::~Form()
{
    delete ui;
}

void Form::on_pushButton_clicked()
{
    this->close();
        MainWindow *pic = new MainWindow;
        pic->show();

}


void Form::on_pushButton_2_clicked()
{
    newMainWindow *new_win = new newMainWindow;
    new_win->show();
}

